Replication files for "Cash Crops, Print Technologies and the Politicization of Ethnicity in Africa" (Pengl, Roessler, and Rueda).

This repository contains the required data and code to replicate the findings in "Cash Crops, Print Technologies and the Politicization of Ethnicity in Africa" (Yannick I. Pengl, Philip Roessler, and Valeria Rueda;  APSR; forthcoming)

All analyses conducted in R.

All figures and tables in the main paper and online appendix can be compiled by running the master file "replication/_ReplicationMasterFile.R"
This file will call individual analysis scripts located in the subfolders  "wlms", "afrobarometer", "dhs", and  "publications".
Make sure to install all R libraries called at the beginning of "replication/_ReplicationMasterFile.R" on your system.
For details and/or partial replication, open and run the respective source scripts.
They run independently provided that you have loaded all libraries and the respective analysis dataset ("data_ab.rds", "data_ab.rds", "data_dhs.rds") specified in  "replication/_ReplicationMasterFile.R"

All output is stored as pdf figures or tex tables in the subfolder "results".

For questions or comments, do not hesitate to contact Valeria Rueda and/or Yannick Pengl.

Our application repository is available through the APSR Dataverse and, alternatively, via GitHub (https://github.com/valeriarueda/apsr_printcrop_ethnicities)
